package com.nxmu.dao;

import java.util.List;

public interface Dao <T>{

    T findById(Class clazz, Integer id);

    List<T> findAll(String hql);

    List<T> findByHql(String hql , Object ... objs);

    boolean save(T t);

    void saveOrUpdate(T t);

    void deleteEntity(T t);

    void deleteByHql(String hql, Object ... objs);

    void update(T t);

}
